home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Utils / Universal Viewer / UniversalViewer.exe / Plugins / Syn2 / HL / CScript.lcf < prev    next >
Encoding:
Text File  |  2007-12-12  |  13.9 KB  |  588 lines

  1. object SyntAnal37: TLibSyntAnalyzer
  2.   Formats = <
  3.     item
  4.       DisplayName = 'Default'
  5.       Font.Charset = DEFAULT_CHARSET
  6.       Font.Color = clWindowText
  7.       Font.Height = -13
  8.       Font.Name = 'Courier New'
  9.       Font.Style = []
  10.       FormatType = ftBackGround
  11.     end
  12.     item
  13.       DisplayName = 'Marked block'
  14.       Font.Charset = DEFAULT_CHARSET
  15.       Font.Color = clHighlightText
  16.       Font.Height = -13
  17.       Font.Name = 'Courier New'
  18.       Font.Style = []
  19.       BgColor = clHighlight
  20.       FormatType = ftColor
  21.     end
  22.     item
  23.       DisplayName = 'Symbol'
  24.       Font.Charset = DEFAULT_CHARSET
  25.       Font.Color = clMaroon
  26.       Font.Height = -13
  27.       Font.Name = 'Courier New'
  28.       Font.Style = [fsBold]
  29.     end
  30.     item
  31.       DisplayName = 'Number'
  32.       Font.Charset = DEFAULT_CHARSET
  33.       Font.Color = clNavy
  34.       Font.Height = -13
  35.       Font.Name = 'Courier New'
  36.       Font.Style = [fsBold]
  37.     end
  38.     item
  39.       DisplayName = 'String'
  40.       Font.Charset = DEFAULT_CHARSET
  41.       Font.Color = clBlue
  42.       Font.Height = -13
  43.       Font.Name = 'Courier New'
  44.       Font.Style = []
  45.       FormatType = ftColor
  46.     end
  47.     item
  48.       DisplayName = 'Identifier'
  49.       Font.Charset = DEFAULT_CHARSET
  50.       Font.Color = clWindowText
  51.       Font.Height = -13
  52.       Font.Name = 'Courier New'
  53.       Font.Style = []
  54.       FormatType = ftColor
  55.     end
  56.     item
  57.       DisplayName = 'Reserved word'
  58.       Font.Charset = DEFAULT_CHARSET
  59.       Font.Color = clWindowText
  60.       Font.Height = -13
  61.       Font.Name = 'Courier New'
  62.       Font.Style = [fsBold]
  63.     end
  64.     item
  65.       DisplayName = 'Comment'
  66.       Font.Charset = DEFAULT_CHARSET
  67.       Font.Color = clRed
  68.       Font.Height = -13
  69.       Font.Name = 'Courier New'
  70.       Font.Style = [fsBold]
  71.       FormatType = ftColor
  72.     end
  73.     item
  74.       DisplayName = 'Preprocessor'
  75.       Font.Charset = DEFAULT_CHARSET
  76.       Font.Color = clGreen
  77.       Font.Height = -13
  78.       Font.Name = 'Courier New'
  79.       Font.Style = [fsItalic]
  80.       FormatType = ftColor
  81.     end
  82.     item
  83.       DisplayName = 'Current block'
  84.       Font.Charset = RUSSIAN_CHARSET
  85.       Font.Color = clMaroon
  86.       Font.Height = -13
  87.       Font.Name = 'Courier New'
  88.       Font.Style = [fsBold]
  89.       BgColor = 13369046
  90.       FormatType = ftColor
  91.       BorderTypeLeft = blSolid
  92.       BorderColorLeft = clGray
  93.       BorderTypeTop = blSolid
  94.       BorderColorTop = clGray
  95.       BorderTypeRight = blSolid
  96.       BorderColorRight = clGray
  97.       BorderTypeBottom = blSolid
  98.       BorderColorBottom = clGray
  99.     end>
  100.   TokenRules = <
  101.     item
  102.       DisplayName = 'String'
  103.       StyleName = 'String'
  104.       TokenType = 4
  105.       Expression = '"(\\"|.)*?("|$)'
  106.       ColumnFrom = 0
  107.       ColumnTo = 0
  108.     end
  109.     item
  110.       DisplayName = 'Any name'
  111.       StyleName = 'Identifier'
  112.       TokenType = 2
  113.       Expression = '[a-z_]\w*'
  114.       ColumnFrom = 0
  115.       ColumnTo = 0
  116.     end
  117.     item
  118.       DisplayName = 'HEX'
  119.       StyleName = 'Number'
  120.       TokenType = 7
  121.       Expression = '0x[\da-f]*'
  122.       ColumnFrom = 0
  123.       ColumnTo = 0
  124.     end
  125.     item
  126.       DisplayName = 'Float'
  127.       StyleName = 'Number'
  128.       TokenType = 6
  129.       Expression = 
  130.         '#with exp. dot is optional '#13#10'\d+ \.? \d+ e [\+\-]? \d+ |'#13#10'#witho' +
  131.         'ut exp. dot is required'#13#10'\d+ \. \d+'
  132.       ColumnFrom = 0
  133.       ColumnTo = 0
  134.     end
  135.     item
  136.       DisplayName = 'Integer'
  137.       StyleName = 'Number'
  138.       TokenType = 5
  139.       Expression = '\d+'
  140.       ColumnFrom = 0
  141.       ColumnTo = 0
  142.     end
  143.     item
  144.       DisplayName = 'Define'
  145.       StyleName = 'Preprocessor'
  146.       TokenType = 9
  147.       Expression = '(?-i)'#13#10'\#define(.*\\\s*\n)*'#13#10'.*  # last line'#13#10#13#10
  148.       ColumnFrom = 0
  149.       ColumnTo = 0
  150.     end
  151.     item
  152.       DisplayName = 'Preprocessor'
  153.       StyleName = 'Preprocessor'
  154.       TokenType = 9
  155.       Expression = '\#.*'
  156.       ColumnFrom = 0
  157.       ColumnTo = 0
  158.     end
  159.     item
  160.       DisplayName = 'Comment 1'
  161.       StyleName = 'Comment'
  162.       TokenType = 1
  163.       Expression = '(?s)/\*.*?(\*/|\Z)'
  164.       ColumnFrom = 0
  165.       ColumnTo = 0
  166.     end
  167.     item
  168.       DisplayName = 'Comment 2'
  169.       StyleName = 'Comment'
  170.       TokenType = 1
  171.       Expression = '//.*'
  172.       ColumnFrom = 0
  173.       ColumnTo = 0
  174.     end
  175.     item
  176.       DisplayName = 'Symbol'
  177.       StyleName = 'Symbol'
  178.       TokenType = 3
  179.       Expression = '[/\+\-\*:=<>&/\|\^~\.]+'
  180.       ColumnFrom = 0
  181.       ColumnTo = 0
  182.     end
  183.     item
  184.       DisplayName = 'Single symbol'
  185.       StyleName = 'Symbol'
  186.       TokenType = 3
  187.       Expression = '[\{\}\(\)\[\],;]'
  188.       ColumnFrom = 0
  189.       ColumnTo = 0
  190.     end
  191.     item
  192.       DisplayName = 'Char'
  193.       StyleName = 'String'
  194.       TokenType = 8
  195.       Expression = #39'.*?('#39'|$)'
  196.       ColumnFrom = 0
  197.       ColumnTo = 0
  198.     end>
  199.   BlockRules = <
  200.     item
  201.       DisplayName = 'Key words'
  202.       StyleName = 'Reserved word'
  203.       BlockType = btTagDetect
  204.       ConditionList = <
  205.         item
  206.           TagList.Strings = (
  207.             '__asm'
  208.             '__automated'
  209.             '__cdecl'
  210.             '__classid'
  211.             '__closure'
  212.             '__declspec'
  213.             '__dispid'
  214.             '__except'
  215.             '__export'
  216.             '__fastcall'
  217.             '__finally'
  218.             '__import'
  219.             '__inline'
  220.             '__int64'
  221.             '__msfastcall'
  222.             '__msreturn'
  223.             '__pascal'
  224.             '__property'
  225.             '__published'
  226.             '__stdcall'
  227.             '__try'
  228.             '__uuidof'
  229.             '_asm'
  230.             '_cdecl'
  231.             '_export'
  232.             '_fastcall'
  233.             '_import'
  234.             '_pascal'
  235.             '_stdcall'
  236.             'asm'
  237.             'auto'
  238.             'bool'
  239.             'break'
  240.             'case'
  241.             'catch'
  242.             'cdecl'
  243.             'char'
  244.             'class'
  245.             'const'
  246.             'continue'
  247.             'default'
  248.             'delete'
  249.             'do'
  250.             'double'
  251.             'else'
  252.             'enum'
  253.             'explicit'
  254.             'export'
  255.             'extern'
  256.             'false'
  257.             'float'
  258.             'for'
  259.             'friend'
  260.             'goto'
  261.             'if'
  262.             'import'
  263.             'inline'
  264.             'int'
  265.             'long'
  266.             'mutable'
  267.             'new'
  268.             'operator'
  269.             'pascal'
  270.             'private'
  271.             'protected'
  272.             'public'
  273.             'register'
  274.             'return'
  275.             'short'
  276.             'signed'
  277.             'sizeof'
  278.             'static'
  279.             'struct'
  280.             'switch'
  281.             'this'
  282.             'throw'
  283.             'true'
  284.             'try'
  285.             'typedef'
  286.             'typeid'
  287.             'typename'
  288.             'union'
  289.             'unsigned'
  290.             'uuid'
  291.             'virtual'
  292.             'void'
  293.             'volatile'
  294.             'wchar_t'
  295.             'while')
  296.           TokenTypes = 4
  297.         end>
  298.       HighlightPos = cpAny
  299.       IgnoreAsParent = False
  300.     end
  301.     item
  302.       DisplayName = '#if'
  303.       ConditionList = <
  304.         item
  305.           TagList.Strings = (
  306.             '#if')
  307.           CondType = tcMask
  308.           TokenTypes = 512
  309.         end>
  310.       BlockEnd = '#endif'
  311.       DisplayInTree = False
  312.       HighlightPos = cpAny
  313.       CollapseFmt = '%s0'
  314.       IgnoreAsParent = False
  315.     end
  316.     item
  317.       DisplayName = '#endif'
  318.       BlockType = btRangeEnd
  319.       ConditionList = <
  320.         item
  321.           TagList.Strings = (
  322.             '#endif')
  323.           TokenTypes = 512
  324.         end>
  325.       HighlightPos = cpAny
  326.       IgnoreAsParent = False
  327.     end
  328.     item
  329.       DisplayName = 'End'
  330.       BlockType = btRangeEnd
  331.       ConditionList = <
  332.         item
  333.           TagList.Strings = (
  334.             '}')
  335.           TokenTypes = 8
  336.         end>
  337.       HighlightPos = cpAny
  338.       IgnoreAsParent = False
  339.     end
  340.     item
  341.       DisplayName = 'function'
  342.       StrictParent = True
  343.       ConditionList = <
  344.         item
  345.           TagList.Strings = (
  346.             '{')
  347.           TokenTypes = 8
  348.         end
  349.         item
  350.           TagList.Strings = (
  351.             ')')
  352.           TokenTypes = 8
  353.         end
  354.         item
  355.           CondType = tcSkip
  356.         end
  357.         item
  358.           TagList.Strings = (
  359.             '(')
  360.           TokenTypes = 8
  361.         end
  362.         item
  363.           TokenTypes = 4
  364.         end
  365.         item
  366.           TagList.Strings = (
  367.             '::')
  368.           CondType = tcNotEqual
  369.           TokenTypes = 8
  370.         end>
  371.       BlockEnd = 'function end'
  372.       NameFmt = '%s0 %s-1'
  373.       RefToCondEnd = True
  374.       HighlightPos = cpAny
  375.       IgnoreAsParent = False
  376.     end
  377.     item
  378.       DisplayName = 'function end'
  379.       BlockName = 'function'
  380.       StrictParent = True
  381.       BlockType = btRangeEnd
  382.       ConditionList = <
  383.         item
  384.           TagList.Strings = (
  385.             '}')
  386.           TokenTypes = 8
  387.         end>
  388.       HighlightPos = cpAny
  389.       IgnoreAsParent = False
  390.     end
  391.     item
  392.       DisplayName = 'cls func'
  393.       StrictParent = True
  394.       ConditionList = <
  395.         item
  396.           TagList.Strings = (
  397.             '{')
  398.           TokenTypes = 8
  399.         end
  400.         item
  401.           TagList.Strings = (
  402.             ')')
  403.           TokenTypes = 8
  404.         end
  405.         item
  406.           CondType = tcSkip
  407.         end
  408.         item
  409.           TagList.Strings = (
  410.             '(')
  411.           TokenTypes = 8
  412.         end
  413.         item
  414.           TokenTypes = 4
  415.         end
  416.         item
  417.           TagList.Strings = (
  418.             '::')
  419.           TokenTypes = 8
  420.         end>
  421.       BlockOffset = -1
  422.       BlockEnd = 'cls func end'
  423.       NameFmt = '%s-1'
  424.       GroupFmt = '%s1'
  425.       RefToCondEnd = True
  426.       HighlightPos = cpAny
  427.       IgnoreAsParent = False
  428.     end
  429.     item
  430.       DisplayName = 'cls func end'
  431.       BlockName = 'cls func'
  432.       StrictParent = True
  433.       BlockType = btRangeEnd
  434.       ConditionList = <
  435.         item
  436.           TagList.Strings = (
  437.             '}')
  438.           TokenTypes = 8
  439.         end>
  440.       HighlightPos = cpAny
  441.       IgnoreAsParent = False
  442.     end
  443.     item
  444.       DisplayName = 'Begin'
  445.       StyleName = 'Current block'
  446.       ConditionList = <
  447.         item
  448.           TagList.Strings = (
  449.             '{')
  450.           TokenTypes = 8
  451.         end>
  452.       BlockEnd = 'End'
  453.       DisplayInTree = False
  454.       DynHighlight = dhBound
  455.       HighlightPos = cpRange
  456.       DrawStaple = True
  457.       CollapseFmt = '{ ... }'
  458.       IgnoreAsParent = False
  459.     end
  460.     item
  461.       DisplayName = '('
  462.       StyleName = 'Current block'
  463.       ConditionList = <
  464.         item
  465.           TagList.Strings = (
  466.             '(')
  467.           TokenTypes = 8
  468.         end>
  469.       BlockEnd = ')'
  470.       NotCollapsed = True
  471.       DisplayInTree = False
  472.       DynHighlight = dhBound
  473.       HighlightPos = cpBoundTagBegin
  474.       DynSelectMin = True
  475.       IgnoreAsParent = False
  476.     end
  477.     item
  478.       DisplayName = ')'
  479.       BlockType = btRangeEnd
  480.       ConditionList = <
  481.         item
  482.           TagList.Strings = (
  483.             ')')
  484.           TokenTypes = 8
  485.         end>
  486.       HighlightPos = cpAny
  487.       IgnoreAsParent = False
  488.     end
  489.     item
  490.       DisplayName = '['
  491.       StyleName = 'Current block'
  492.       ConditionList = <
  493.         item
  494.           TagList.Strings = (
  495.             '[')
  496.           TokenTypes = 8
  497.         end>
  498.       BlockEnd = ']'
  499.       NotCollapsed = True
  500.       DisplayInTree = False
  501.       DynHighlight = dhBound
  502.       HighlightPos = cpBoundTagBegin
  503.       DynSelectMin = True
  504.       IgnoreAsParent = False
  505.     end
  506.     item
  507.       DisplayName = ']'
  508.       BlockType = btRangeEnd
  509.       ConditionList = <
  510.         item
  511.           TagList.Strings = (
  512.             ']')
  513.           TokenTypes = 8
  514.         end>
  515.       HighlightPos = cpAny
  516.       IgnoreAsParent = False
  517.     end
  518.     item
  519.       DisplayName = 'Block comment'
  520.       BlockName = 'Block comment'
  521.       NotParent = True
  522.       ConditionList = <
  523.         item
  524.           TokenTypes = 2
  525.         end>
  526.       BlockEnd = 'Block comment end'
  527.       DisplayInTree = False
  528.       HighlightPos = cpAny
  529.       CollapseFmt = '{ ... }'
  530.       IgnoreAsParent = False
  531.     end
  532.     item
  533.       DisplayName = 'Block comment end'
  534.       BlockType = btRangeEnd
  535.       ConditionList = <
  536.         item
  537.           CondType = tcNotEqual
  538.           TokenTypes = 2
  539.         end
  540.         item
  541.           TokenTypes = 2
  542.         end>
  543.       BlockOffset = 1
  544.       HighlightPos = cpAny
  545.       IgnoreAsParent = False
  546.     end>
  547.   CodeTemplates = <>
  548.   SubAnalyzers = <>
  549.   SampleText.Strings = (
  550.     '/*Syntax highlighting*/'
  551.     ''
  552.     '#define MAX(a, b)  \'
  553.     '     ((a > b) ? a : b) '
  554.     '     '
  555.     'void __fastcall TForm1->Button1Click(Sender: TObject);'
  556.     '{'
  557.     ' int Number = 123;  // View integer number style'
  558.     ' double FloatNumber = 0.123e+2;  // View float number style'
  559.     
  560.       ' Caprion = "This Number is " + IntToStr(Number); // View string ' +
  561.       'style'
  562.     ' Number += 0x1FA7; // View HEX style'
  563.     ' char c = '#39'D'#39';'
  564.     '}')
  565.   TokenTypeNames.Strings = (
  566.     'Unknown'
  567.     'Comment'
  568.     'Identifier'
  569.     'Symbol'
  570.     'String'
  571.     'Integer const'
  572.     'Float const'
  573.     'Hex const'
  574.     'Char const'
  575.     'Preprocessor')
  576.   Gramma.Gramma = 
  577.     'Skip = <Comment>;'#13#10#13#10'NameDetector = <Identifier> Braket?;'#13#10#13#10'Fun' +
  578.     'cCall = <Identifier> Braket;'#13#10#13#10'Braket = Braket1 | Braket2;'#13#10#13#10'B' +
  579.     'raket1 = LeftBraket1 '#39')'#39';'#13#10#13#10'LeftBraket1 = LeftBraket1 <Unknown>' +
  580.     ' |'#13#10'             '#39'('#39';'#13#10'             '#13#10'Braket2 = LeftBraket2 '#39']'#39';' +
  581.     #13#10#13#10'LeftBraket2 = LeftBraket2 <Unknown> |'#13#10'             '#39'['#39';'#13#10
  582.   MarkedBlockStyle = 'Marked block'
  583.   DefaultStyleName = 'Default'
  584.   Extentions = 'c cpp'
  585.   LexerName = 'C++ Script'
  586.   Internal = True
  587. end
  588.